package org.lsj.kit.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.lsj.kit.model.Perm;
import org.lsj.kit.model.PermExample;

public interface PermMapper {
    long countByExample(PermExample example);

    int deleteByExample(PermExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Perm record);

    int insertSelective(Perm record);

    List<Perm> selectByExample(PermExample example);

    Perm selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Perm record, @Param("example") PermExample example);

    int updateByExample(@Param("record") Perm record, @Param("example") PermExample example);

    int updateByPrimaryKeySelective(Perm record);

    int updateByPrimaryKey(Perm record);

    List<Perm> queryByUserId(Integer userId);

    List<Map<String,Object>> queryMenuResourceByUserId(Map params);
}